package com.janko.springbootbase.a_projectExample.collection;

import java.util.*;

/**
 * @Author janko
 * @Version 1.0
 * @date 2021/5/15 11:58
 * @Description 类文件说明
 */
public class myCollection {
    /**
     * 常见数组： Collection、ArrayList、Vector
     *
     */

    public static void main(String[] args) {
        // 接口 = 实现
        Collection cc=new ArrayList<>();

        List<String> list=new ArrayList<>();

        List<String> vectorList=new Vector<>();
        vectorList.add("123");

        List<Integer> linkedList=new LinkedList<>();
        linkedList.add(1);
        linkedList.add(2);
        linkedList.add(3);
        linkedList.add(4);
        System.out.println(linkedList.toString());
    }
}
